@import "_reset.scss";
@import "head.scss";
@import "foot.scss";

%w {
  width: 1220px;
  margin: 0 auto;
}
body {
  background: #fff;
}
img {
  vertical-align: middle;
}
// banner图
.banner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 580px;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 180px;

  .swiper {
    position: relative;
    width: max-content;
    overflow: hidden;

    li {
      float: left;
      img {
        height: 550px;
        width: 1920px;
      }
    }
  }

  .prev {
    height: 60px;

    img {
      position: absolute;
      top: 200px;
      left: 40px;
      height: 60px;
      display: none;
    }

    &:hover .red {
      display: block;
    }
  }

  .next {
    height: 60px;

    img {
      position: absolute;
      top: 200px;
      right: 40px;
      height: 60px;
      display: none;
    }
    &:hover .red {
      display: block;
    }
  }
  &:hover {
    .black {
      display: block;
    }
  }
}

.dot {
  position: absolute;
  top: 660px;
  left: 50%;
  transform: translateX(-50%) skewX(-30deg);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.05);

  li {
    float: left;
    width: 6px;
    height: 16px;
    background-color: #999;
    border-radius: 2px;
    margin: 13px 23px;

    &:hover {
      background-color: #e60012;
    }
  }

  .active {
    background-color: #e60012;
  }
}
.contentbody {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  //商品公共样式
  .goods {
    @extend %w;
    height: 580px;
    margin-top: 34px;
    margin-bottom: 34px;
  }

  .title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    .line {
      width: 500px;
      height: 1px;
      background: #999;
    }
    .word {
      position: absolute;
      top: -35px;
      width: 173px;
      background: #fff;

      h2 {
        font-size: 30px;
        color: #666;
        font-weight: 700;
      }
      span {
        font-size: 16px;
        color: #999;
      }
    }
  }
  .local-sub {
    width: 22px;
    height: 262px;
    float: left;

    li {
      background: #999;
      transform: skewY(30deg);
      font-size: 14px;
      color: #fff;
      border-radius: 3px;
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      height: 84px;

      &:first-child {
        background: #f60012;
      }
      &:hover {
        background: #585858;
      }
      &:active {
        background: #f60012;
      }

      a {
        transform: skewY(-30deg);
      }
    }
  }

  .goodsList {
    float: left;
    display: flex;
    flex-wrap: wrap;
    width: 1150px;

    margin-left: 24px;

    li {
      width: 220px;
      height: 270px;
      padding: 12px;
      box-sizing: border-box;
      transition: all 0.5s;

      &:hover {
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 2px 10px #888;
      }

      img {
        width: 192px;
      }

      p {
        // width: 152px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 15px 10px 4px 10px;
        border-top: 1px solid #f6f6f6;
      }

      .price {
        margin-left: 40px;

        > span {
          &:nth-child(1) {
            float: left;
            font-size: 16px;
            color: #e60012;
          }
        }

        .price1 {
          float: left;
          font-size: 12px;
          color: #999;
          margin: 2px 0 0 5px;

          span {
            &:nth-child(2) {
              text-decoration: line-through;
            }
          }
        }
      }
    }

    .more {
      float: left;
      width: 205px;
      height: 270px;
      background-color: #f9f9f9;
      color: #6f6f6f;
      text-align: center;
      margin: 11px;
      font-weight: 800;
      transition: all 0.5s;

      h2 {
        font-size: 26px;
        line-height: 100px;
        margin-top: 40px;
      }

      &:hover {
        color: #fff;
        background: #e60012;
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 2px 10px #888;
      }
    }
  }
  .aside {
    position: fixed;
    top: 80px;
    width: 40px;
    height: 410px;
    right: -40px;
    transition: 0.5s;
    background: #000;
    color: #fff;
    z-index: 99;
    text-align: center;
    p {
      padding: 12px 8px;
      margin: 0 auto;
      font-size: 14px;
      &:nth-child(1) {
        border-bottom: white solid 1px;
      }
      &:nth-child(2) {
        img {
          padding-bottom: 12px;
        }
        border-bottom: white solid 1px;
      }
      &:nth-child(2):hover {
        padding: 30px 8px;
        background-color: red;
      }
      &:nth-child(2):hover img {
        display: none;
      }
      &:nth-child(2):hover span {
        display: block;
      }
      &:nth-child(3) {
        padding: 0 0;
        a {
          padding: 12px 8px;
          display: block;
          font-size: 12px;
          img {
            display: block;
          }
          span {
            width: 24px;
            display: none;
          }
        }
        a:hover {
          background-color: red;
        }
        a:hover img {
          display: none;
        }
        a:hover span {
          display: block;
        }
      }
    }
    .totop {
      position: absolute;
      right: 8px;
      bottom: 20px;
    }
  }
  // 篮球
  .main {
    .mainBox {
      position: relative;
      width: 100%;
      height: 283px;
      margin-top: 52px;
      overflow: hidden;

      .pBox {
        position: absolute;
        top: 54px;
        width: 50%;
        height: 200px;
        background-color: #d43f34;
        float: left;

        .wordBox {
          margin-left: 220px;
          margin-top: 34px;
          color: #fff;

          p {
            font-size: 16px;
            line-height: 28px;

            &:nth-child(1) {
              font-size: 26px;
              line-height: 40px;
            }
          }

          li {
            float: left;
            width: 84px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            margin-top: 10px;
            border-right: 2px solid #631b16;
            font-size: 14px;

            &:nth-child(1) {
              background: #7d241d;
            }
            &:nth-child(2) {
              background: #9a2b23;
            }
            &:nth-child(3) {
              background: #aa332a;
            }
            &:hover {
              background-color: rgba(255, 255, 255, 0.5);
            }
          }
        }
      }

      img {
        position: absolute;
        left: 30%;
        height: 283px;
      }
    }
  }

  //running
  .main {
    margin-top: 50px;
    .running {
      position: relative;
      height: 283px;
      width: 100%;
      max-width: 1920px;
      margin: 0 auto;
      margin-top: 52px;
      overflow: hidden;

      .pBox {
        margin-top: 53px;
        width: 55%;
        height: 200px;
        background-color: rgb(63, 72, 87);
        float: right;

        .wordBox {
          float: right;
          margin: 50px 150px 0 0;
          color: #fff;

          p {
            font-size: 16px;
            line-height: 28px;

            &:nth-child(1) {
              font-size: 26px;
              line-height: 40px;
            }
          }

          li {
            float: left;
            width: 84px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            margin-top: 10px;
            border-right: 2px solid #33495f;
            font-size: 14px;

            &:nth-child(1) {
              background: rgb(79, 90, 128);
            }
            &:nth-child(2) {
              background: rgb(93, 103, 143);
            }
            &:hover {
              background-color: rgba(255, 255, 255, 0.5);
            }
          }
        }
      }

      img {
        position: absolute;
        left: -400px;
        top: 0;
        height: 283px;
      }
    }
  }
  .main {
    margin-top: 50px;

    .training {
      position: relative;
      margin-top: 52px;
      overflow: hidden;

      .pBox {
        position: absolute;
        top: 54px;
        width: 50%;
        height: 200px;
        background-color: #6b82ab;
        float: left;

        .wordBox {
          margin-left: 220px;
          margin-top: 34px;
          color: #fff;

          p {
            font-size: 16px;
            line-height: 28px;

            &:nth-child(1) {
              font-size: 26px;
              line-height: 40px;
            }
          }

          li {
            float: left;
            width: 84px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            margin-top: 10px;
            border-right: 2px solid #5d678f;
            font-size: 14px;

            &:nth-child(1) {
              background: #4f5a80;
            }
            &:nth-child(2) {
              background: #5d678f;
            }
            &:hover {
              background-color: rgba(255, 255, 255, 0.5);
            }
          }
        }
      }

      img {
        position: absolute;
        left: 30%;
        height: 283px;
      }
    }
  }
  //SPORTS LIFE
  .main4 {
    margin-top: 50px;
    .sports {
      position: relative;
      height: 283px;
      width: 100%;
      max-width: 1920px;
      margin: 0 auto;
      margin-top: 52px;
      overflow: hidden;

      .pBox {
        margin-top: 53px;
        width: 55%;
        height: 200px;
        background-color: #a4a6b3;
        float: right;
        .wordBox {
          float: right;
          margin: 50px 150px 0 0;
          color: #fff;

          p {
            font-size: 16px;
            line-height: 28px;

            &:nth-child(1) {
              font-size: 26px;
              line-height: 40px;
            }
          }

          li {
            float: left;
            width: 84px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            margin-top: 10px;
            border-right: 2px solid #424456;
            font-size: 14px;

            &:nth-child(1) {
              background: #55566d;
            }
            &:nth-child(2) {
              background: #686981;
            }
            &:hover {
              background-color: rgba(255, 255, 255, 0.5);
            }
          }
        }
      }

      img {
        position: absolute;
        left: -400px;
        top: 0;
        height: 283px;
      }
    }
  }
}
